package com.disruptor.sample._04clear.consumer;

import com.disruptor.sample.common.dto.ObjectEvent;
import com.lmax.disruptor.EventHandler;

public class ClearingEventHandler<T> implements EventHandler<ObjectEvent<T>> {

  @Override
  public void onEvent(ObjectEvent<T> event, long sequence, boolean endOfBatch) {
    event.clear();
  }

}
